﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SystemWnioskujacy.Exceptions {
    public class TreeException : LamesException {
        private const string MESSAGE = "Lame's Tree Exception!";

        public TreeException() : base(MESSAGE) {
        }

        public TreeException(string message)
            : base(message) {
        }

        public TreeException(string message, Exception inner)
            : base(message, inner) {
        }
    }

    public class TreeLevelException : TreeException {
        private const string MESSAGE = "Tree level Exception! Node's parent is missing!";  

        public TreeLevelException() : base(MESSAGE) {
        }

        public TreeLevelException(string message)
            : base(message) {
        }

        public TreeLevelException(string message, Exception inner)
            : base(message, inner) {
        }
    }
}
